<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="../assets/js/vue.js"></script>
    <title>Component 组件props 属性设置</title>
</head>

<body>
    <h1>Component 组件props 属性设置</h1>
    <hr>
    <div id="app">
        <panda here="sichuan"></panda>
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            components:{
                "panda":{
                    template:`<div style="color:#00925f">panda from {{here}}</div>`,
                    props:['here']
                }
            }
        })
    </script>
</body>

</html>